export function splitToNumberArray(
  str: string | null,
  sep: string = ',',
  defaultValue: number[] = []
): number[] {
  if (str == null) return defaultValue
  return String(str).split(sep).map(it => Number(it))
}
